const initRouter = require('express').Router();
// const connect = require('../mysql');
// const { findRoomsAll } = require('../mysql/sql/usermodel');
const Token = require('../authMiddle');


initRouter.get('/login', function (req,res) {
    const encrypt = Token.encrypt({
        name: '清华园',
        password: '213421'
    }, 120);
    res.json(encrypt)
})

module.exports = initRouter;